﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
///PackageImage 的摘要说明
/// </summary>
public class PackageImage
{
	public PackageImage()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public static void ImageZip(int width,int height,string simageURL)
    {
        string simageMap=HttpContext.Current.Server.MapPath(simageURL);
        System.Drawing.Image oldimage = System.Drawing.Image.FromFile(simageMap);
        System.Drawing.Image newimg = oldimage.GetThumbnailImage(width, height, null, new System.IntPtr(0));
        oldimage.Dispose();
        newimg.Save(simageMap);
        newimg.Dispose();
    }
}
